/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-19 20:38:08
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-19 20:38:11
 * @别瞎看: 你个无脑牛马
 */
// Worker 类
class Worker extends Employee {
    private int daysWorked;
    private double dailyWage;

    public Worker(String name, String gender, String birthDate, int daysWorked, double dailyWage) {
        super(name, gender, birthDate, "Worker");
        this.daysWorked = daysWorked;
        this.dailyWage = dailyWage;
    }

    public double calculateSalary() {
        return daysWorked * dailyWage;
    }
}